<?php
defined('IN_TS') or die('Access Denied.');
/* 
 * 配置选项
 */	

switch($ts){
	//基本配置
	case "":

        $strOption = fileRead('study_options.php');
        if($strOption==''){
            $strOption = $tsMySqlCache->get('study_options');
        }

		include template("admin/options");		
		break;

    case "do":

        fileWrite('study_options.php','data',$_POST['option']);
        $tsMySqlCache->set('study_options',$_POST['option']);

        qiMsg('修改成功');

        break;
}